package com.jy.adscm.order.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-01-18
 */
public class JyOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单号
     */
    private String orderNum;
    /**
     * 产品
     */
    private String product;
    @TableField(exist = false)
    private String productName;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 单位
     */
    private String unit;
    @TableField(exist = false)
    private String unitName;
    /**
     * 经销商
     */
    private String dealer;
    @TableField(exist = false)
    private String dealerName;
    /**
     * 下单人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 下单时间
     */
    private Date createTime;
    /**
     * 期望到货时间
     */
    private Date predictTime;
    /**
     * 审核人
     */
    private String approver;
    @TableField(exist = false)
    private String approverName;
    /**
     * 审核时间
     */
    private Date approveTime;
    /**
     * 是否库存占用
     */
    private String isOccupiedStorage;
    /**
     * 确定到货时间
     */
    private Date surePredictTime;
    /**
     * 审核备注
     */
    private String approveRemark;
    /**
     * 物流公司
     */
    private String logisticsCompany;
    /**
     * 订单号
     */
    private String logisticsNum;
    /**
     * 起运人
     */
    private String logisticsPerson;
    /**
     * 起运时间
     */
    private Date outStorageTime;
    /**
     * 最后签收时间
     */
    private Date lastSignTime;
    /**
     * 签收时间
     */
    private Date signTime;
    /**
     * 订单状态
     */
    private Integer orderState;
    @TableField(exist = false)
    private  String  orderStateName;
    /**
     * 审核结果
     */
    private   String   approveResult;
    /**
     * 签收人
     */
    private   String  signPerson;
    @TableField(exist = false)
    private   String  signPersonName;

    public String getSignPersonName() {
        return signPersonName;
    }

    public void setSignPersonName(String signPersonName) {
        this.signPersonName = signPersonName;
    }

    public String getSignPerson() {
        return signPerson;
    }

    public void setSignPerson(String signPerson) {
        this.signPerson = signPerson;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getApproveResult() {
        return approveResult;
    }

    public void setApproveResult(String approveResult) {
        this.approveResult = approveResult;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getPredictTime() {
        return predictTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setPredictTime(Date predictTime) {
        this.predictTime = predictTime;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getApproveTime() {
        return approveTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }

    public String getIsOccupiedStorage() {
        return isOccupiedStorage;
    }

    public void setIsOccupiedStorage(String isOccupiedStorage) {
        this.isOccupiedStorage = isOccupiedStorage;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getSurePredictTime() {
        return surePredictTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setSurePredictTime(Date surePredictTime) {
        this.surePredictTime = surePredictTime;
    }

    public String getApproveRemark() {
        return approveRemark;
    }

    public void setApproveRemark(String approveRemark) {
        this.approveRemark = approveRemark;
    }

    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany;
    }

    public String getLogisticsNum() {
        return logisticsNum;
    }

    public void setLogisticsNum(String logisticsNum) {
        this.logisticsNum = logisticsNum;
    }

    public String getLogisticsPerson() {
        return logisticsPerson;
    }

    public void setLogisticsPerson(String logisticsPerson) {
        this.logisticsPerson = logisticsPerson;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOutStorageTime() {
        return outStorageTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOutStorageTime(Date outStorageTime) {
        this.outStorageTime = outStorageTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getLastSignTime() {
        return lastSignTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setLastSignTime(Date lastSignTime) {
        this.lastSignTime = lastSignTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getSignTime() {
        return signTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public String getDealerName() {
        return dealerName;
    }

    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getApproverName() {
        return approverName;
    }

    public void setApproverName(String approverName) {
        this.approverName = approverName;
    }

    public String getOrderStateName() {
        return orderStateName;
    }

    public void setOrderStateName(String orderStateName) {
        this.orderStateName = orderStateName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    @Override
    public String toString() {
        return "JyOrder{" +
                "id=" + id +
                ", orderNum='" + orderNum + '\'' +
                ", product='" + product + '\'' +
                ", productName='" + productName + '\'' +
                ", num=" + num +
                ", unit='" + unit + '\'' +
                ", dealer='" + dealer + '\'' +
                ", dealerName='" + dealerName + '\'' +
                ", creator='" + creator + '\'' +
                ", creatorName='" + creatorName + '\'' +
                ", createTime=" + createTime +
                ", predictTime=" + predictTime +
                ", approver='" + approver + '\'' +
                ", approverName='" + approverName + '\'' +
                ", approveTime=" + approveTime +
                ", isOccupiedStorage='" + isOccupiedStorage + '\'' +
                ", surePredictTime=" + surePredictTime +
                ", approveRemark='" + approveRemark + '\'' +
                ", logisticsCompany='" + logisticsCompany + '\'' +
                ", logisticsNum='" + logisticsNum + '\'' +
                ", logisticsPerson='" + logisticsPerson + '\'' +
                ", outStorageTime=" + outStorageTime +
                ", lastSignTime=" + lastSignTime +
                ", signTime=" + signTime +
                ", orderState=" + orderState +
                ", orderStateName='" + orderStateName + '\'' +
                ", approveResult='" + approveResult + '\'' +
                '}';
    }
}
